package com.ruoyi.app.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

public class WechatPayNotifyConstants {
    @AllArgsConstructor
    @Getter
    public enum WechatPayNotifyEnum {
        //店铺的购物订单
        SHOP_ORDER_NOTIFY(0),
        NULL(-1),
        ;
        private int value;

        public static WechatPayNotifyEnum match(int value) {
            for (WechatPayNotifyEnum one : WechatPayNotifyEnum.values()) {
                if (one.getValue() == value) {
                    return one;
                }
            }
            return WechatPayNotifyEnum.NULL;
        }
    }
}
